<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Emulateur PROCSI:  Fichier source de /Users/antoinelavail/Documents/workspace/emulateur-procsi-c/src/fonctions.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Emulateur PROCSI
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Projet d&#39;émulation d&#39;une architecture PROCSI</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/Users/antoinelavail/Documents/workspace/emulateur-procsi-c/src/fonctions.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fonctions_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> ============================================================================</span>
<a name="l00003"></a>00003 <span class="comment"> Name        : fonctions.h</span>
<a name="l00004"></a>00004 <span class="comment"> Author      : Antoine LAVAIL &amp; Romain ROUFAST</span>
<a name="l00005"></a>00005 <span class="comment"> Version     : 1.0 (nucleus minimale)</span>
<a name="l00006"></a>00006 <span class="comment"> Copyright   :</span>
<a name="l00007"></a>00007 <span class="comment"> Description : D�clarations du n�cessaire pour l&#39;�mulateur. Prototypes de fonctions.</span>
<a name="l00008"></a>00008 <span class="comment"> ============================================================================</span>
<a name="l00009"></a>00009 <span class="comment"> */</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef DECLARATIONS_H_</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define DECLARATIONS_H_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="comment">// Codes-op�rateurs</span>
<a name="l00017"></a><a class="code" href="fonctions_8h.html#a97fe5470fb1ac167c713671655ff3e52">00017</a> <span class="preprocessor">#define ADD 0</span>
<a name="l00018"></a><a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define SUB 1</span>
<a name="l00019"></a><a class="code" href="fonctions_8h.html#a35e1459a1f52ce4fc0834f47b408ee29">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define JMP 2</span>
<a name="l00020"></a><a class="code" href="fonctions_8h.html#a78ea9723ab55ec0293dba1cd48f3bd7d">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define JEQ 3</span>
<a name="l00021"></a><a class="code" href="fonctions_8h.html#aa980b5e5e502cf62bdca6c0452b97516">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define CALL 4</span>
<a name="l00022"></a><a class="code" href="fonctions_8h.html#ac2544c8b4fe3113b0d6bb62530692c21">00022</a> <span class="preprocessor"></span><span class="preprocessor">#define RET 5</span>
<a name="l00023"></a><a class="code" href="fonctions_8h.html#a431b92b32ec924789b2be268651a3fdd">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define PUSH 6</span>
<a name="l00024"></a><a class="code" href="fonctions_8h.html#a0b06d6d6f5a540a62659a417de0ad69d">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define POP 7</span>
<a name="l00025"></a><a class="code" href="fonctions_8h.html#a0b674752cca6d434a1a69f40877eb2be">00025</a> <span class="preprocessor"></span><span class="preprocessor">#define LOAD 8</span>
<a name="l00026"></a><a class="code" href="fonctions_8h.html#ac677e3bf428ab129e0cc9153ad7f23c7">00026</a> <span class="preprocessor"></span><span class="preprocessor">#define STORE 9</span>
<a name="l00027"></a><a class="code" href="fonctions_8h.html#a0de250395e6a7c0c32a34b50a6254c7d">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define HALT 10</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="comment">/*</span>
<a name="l00030"></a>00030 <span class="comment"> * Initialisation des modes d&#39;adressage :</span>
<a name="l00031"></a>00031 <span class="comment"> *              - registre-registre     --&gt; 0000</span>
<a name="l00032"></a>00032 <span class="comment"> *              - registre-imm�diat   --&gt; 0100</span>
<a name="l00033"></a>00033 <span class="comment"> *              - registre-direct               --&gt; 1000</span>
<a name="l00034"></a>00034 <span class="comment"> *              - registre-indirect     --&gt; 1100</span>
<a name="l00035"></a>00035 <span class="comment"> */</span>
<a name="l00036"></a><a class="code" href="fonctions_8h.html#a917d6766ff07665e160204f3a2d93216">00036</a> <span class="preprocessor">#define REGREG 0</span>
<a name="l00037"></a><a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define REGIMM 4</span>
<a name="l00038"></a><a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define REGDIR 8</span>
<a name="l00039"></a><a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define REGIND 12</span>
<a name="l00040"></a><a class="code" href="fonctions_8h.html#a51e10a0d8efc90afbfb345e4cb2b346a">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define DIRREG 1</span>
<a name="l00041"></a><a class="code" href="fonctions_8h.html#a4f0adb4e146e639903252ad3a4f71306">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define DIRIMM 5</span>
<a name="l00042"></a><a class="code" href="fonctions_8h.html#a458b5a70a4f56487da34116cf2418a7d">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define INDIMM 6</span>
<a name="l00043"></a><a class="code" href="fonctions_8h.html#a937ab4c6531fc649290372550e5ff224">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define INDREG 2</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="comment">/*</span>
<a name="l00046"></a>00046 <span class="comment"> * D�finir la composition d&#39;un mot en m�moire :</span>
<a name="l00047"></a>00047 <span class="comment"> *              - soit un short (brut)</span>
<a name="l00048"></a>00048 <span class="comment"> *              - soit des champs de bits (codage)</span>
<a name="l00049"></a>00049 <span class="comment"> * La taille est de 16 bits</span>
<a name="l00050"></a>00050 <span class="comment"> */</span>
<a name="l00051"></a><a class="code" href="unionmot.html">00051</a> <span class="keyword">typedef</span> <span class="keyword">union </span>{
<a name="l00052"></a><a class="code" href="unionmot.html#aa1fd1ed7856230f9d6a1cbfe52ccaa1f">00052</a>         <span class="keywordtype">short</span> <a class="code" href="unionmot.html#aa1fd1ed7856230f9d6a1cbfe52ccaa1f">brut</a>;
<a name="l00053"></a>00053         <span class="keyword">struct </span>{
<a name="l00054"></a><a class="code" href="unionmot.html#a714efb2f738953c61ec3e11c82a0e5b6">00054</a>                 <span class="keywordtype">unsigned</span> codeop :6;
<a name="l00055"></a><a class="code" href="unionmot.html#a79f1aed8545a4399ce7dbcbe5d0a38f5">00055</a>                 <span class="keywordtype">unsigned</span> mode :4;
<a name="l00056"></a><a class="code" href="unionmot.html#a66846948c4421f1ab4bddc78b0a2e41f">00056</a>                 <span class="keywordtype">unsigned</span> source :3;
<a name="l00057"></a><a class="code" href="unionmot.html#a8cc654c8b1f1628a5b32821309615135">00057</a>                 <span class="keywordtype">unsigned</span> dest :3;
<a name="l00058"></a>00058         } codage;
<a name="l00059"></a>00059 } <a class="code" href="unionmot.html">mot</a>;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="preprocessor">#endif </span><span class="comment">/* DECLARATIONS_H_ */</span>
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="preprocessor">#ifndef EXEMPLE_UTILISATION_H_</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define EXEMPLE_UTILISATION_H_</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00066"></a>00066 <span class="comment">// Taille de la m�moire centrale (instructions)</span>
<a name="l00067"></a>00067 <span class="preprocessor">#define TAILLE_MEMI 52</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a>00069 <span class="comment">// Exemple d&#39;utilisation</span>
<a name="l00070"></a>00070 <span class="keyword">static</span> <a class="code" href="unionmot.html">mot</a> memi[TAILLE_MEMI] = {
<a name="l00071"></a>00071                 <span class="comment">// ADD R1, #25</span>
<a name="l00072"></a>00072                 { .<a class="code" href="unionmot.html#a9e514da7cc93ad96d4019149f61ee830">codage</a> = {<a class="code" href="fonctions_8h.html#a97fe5470fb1ac167c713671655ff3e52">ADD</a>,<a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a>,1} },
<a name="l00073"></a>00073                 { .brut = 25},
<a name="l00074"></a>00074                 <span class="comment">// ADD R1, R0</span>
<a name="l00075"></a>00075                 { .codage = {<a class="code" href="fonctions_8h.html#a97fe5470fb1ac167c713671655ff3e52">ADD</a>,<a class="code" href="fonctions_8h.html#a917d6766ff07665e160204f3a2d93216">REGREG</a>,1,0} },
<a name="l00076"></a>00076                 <span class="comment">// ADD R2, [4]</span>
<a name="l00077"></a>00077                 { .codage = {<a class="code" href="fonctions_8h.html#a97fe5470fb1ac167c713671655ff3e52">ADD</a>,<a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">REGDIR</a>,2} },
<a name="l00078"></a>00078                 { .brut = 4 },
<a name="l00079"></a>00079                 <span class="comment">// ADD R5, [R6]</span>
<a name="l00080"></a>00080                 { .codage = {<a class="code" href="fonctions_8h.html#a97fe5470fb1ac167c713671655ff3e52">ADD</a>, <a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">REGIND</a>,6,5} },
<a name="l00081"></a>00081 
<a name="l00082"></a>00082                 <span class="comment">// JMP 16</span>
<a name="l00083"></a>00083                 { .codage = {<a class="code" href="fonctions_8h.html#a35e1459a1f52ce4fc0834f47b408ee29">JMP</a>, <a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a> } },
<a name="l00084"></a>00084                 { .brut = 16},
<a name="l00085"></a>00085 
<a name="l00086"></a>00086                 <span class="comment">// SUB R2, R1</span>
<a name="l00087"></a>00087                 { .codage = {<a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">SUB</a>,<a class="code" href="fonctions_8h.html#a917d6766ff07665e160204f3a2d93216">REGREG</a>,1,2} },
<a name="l00088"></a>00088                 <span class="comment">// SUB R5, [6]</span>
<a name="l00089"></a>00089                 { .codage = {<a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">SUB</a>,<a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">REGDIR</a>,5} },
<a name="l00090"></a>00090                 { .brut = 6 },
<a name="l00091"></a>00091                 <span class="comment">// SUB R7, #1</span>
<a name="l00092"></a>00092                 { .codage = {<a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">SUB</a>,<a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a>,7} },
<a name="l00093"></a>00093                 { .brut = 1 },
<a name="l00094"></a>00094                 <span class="comment">// SUB R0, [R3]</span>
<a name="l00095"></a>00095                 { .codage = {<a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">SUB</a>, <a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">REGIND</a>,3,0} },
<a name="l00096"></a>00096                 <span class="comment">// RET</span>
<a name="l00097"></a>00097                 { .codage = {<a class="code" href="fonctions_8h.html#ac2544c8b4fe3113b0d6bb62530692c21">RET</a> } },
<a name="l00098"></a>00098 
<a name="l00099"></a>00099                 <span class="comment">// LOAD R3, #10</span>
<a name="l00100"></a>00100                 { .codage = {<a class="code" href="fonctions_8h.html#a0b674752cca6d434a1a69f40877eb2be">LOAD</a>,<a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a>,3} },
<a name="l00101"></a>00101                 { .brut = 10 },
<a name="l00102"></a>00102                 <span class="comment">// LOAD R4, [2]</span>
<a name="l00103"></a>00103                 { .codage = {<a class="code" href="fonctions_8h.html#a0b674752cca6d434a1a69f40877eb2be">LOAD</a>,<a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">REGDIR</a>,4} },
<a name="l00104"></a>00104                 { .brut = 2 },
<a name="l00105"></a>00105                 <span class="comment">// LOAD R3, [R2]</span>
<a name="l00106"></a>00106                 { .codage = {<a class="code" href="fonctions_8h.html#a0b674752cca6d434a1a69f40877eb2be">LOAD</a>, <a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">REGIND</a>,2,1} },
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                 <span class="comment">// STORE [R1], #15</span>
<a name="l00109"></a>00109                 { .codage = {<a class="code" href="fonctions_8h.html#ac677e3bf428ab129e0cc9153ad7f23c7">STORE</a>,<a class="code" href="fonctions_8h.html#a458b5a70a4f56487da34116cf2418a7d">INDIMM</a>,1} },
<a name="l00110"></a>00110                 { .brut = 15},
<a name="l00111"></a>00111                 <span class="comment">// STORE [2], #4</span>
<a name="l00112"></a>00112                 { .codage = {<a class="code" href="fonctions_8h.html#ac677e3bf428ab129e0cc9153ad7f23c7">STORE</a>,<a class="code" href="fonctions_8h.html#a4f0adb4e146e639903252ad3a4f71306">DIRIMM</a>} },
<a name="l00113"></a>00113                 { .brut = 2},
<a name="l00114"></a>00114                 { .brut = 4},
<a name="l00115"></a>00115                 <span class="comment">// STORE [7], R0;</span>
<a name="l00116"></a>00116                 { .codage = {<a class="code" href="fonctions_8h.html#ac677e3bf428ab129e0cc9153ad7f23c7">STORE</a>,<a class="code" href="fonctions_8h.html#a51e10a0d8efc90afbfb345e4cb2b346a">DIRREG</a>,0} },
<a name="l00117"></a>00117                 { .brut = 7 },
<a name="l00118"></a>00118                 <span class="comment">// STORE [R2], R3;</span>
<a name="l00119"></a>00119                 { .codage = {<a class="code" href="fonctions_8h.html#ac677e3bf428ab129e0cc9153ad7f23c7">STORE</a>,<a class="code" href="fonctions_8h.html#a937ab4c6531fc649290372550e5ff224">INDREG</a>,3,2} },
<a name="l00120"></a>00120 
<a name="l00121"></a>00121                 <span class="comment">// PUSH R7</span>
<a name="l00122"></a>00122                 { .codage = {<a class="code" href="fonctions_8h.html#a431b92b32ec924789b2be268651a3fdd">PUSH</a>, <a class="code" href="fonctions_8h.html#a917d6766ff07665e160204f3a2d93216">REGREG</a>,7} },
<a name="l00123"></a>00123                 <span class="comment">// PUSH #20</span>
<a name="l00124"></a>00124                 { .codage = {<a class="code" href="fonctions_8h.html#a431b92b32ec924789b2be268651a3fdd">PUSH</a>,<a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a>} },
<a name="l00125"></a>00125                 { .brut = 20 },
<a name="l00126"></a>00126                 <span class="comment">// PUSH [3]</span>
<a name="l00127"></a>00127                 { .codage = {<a class="code" href="fonctions_8h.html#a431b92b32ec924789b2be268651a3fdd">PUSH</a>,<a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">REGDIR</a>} },
<a name="l00128"></a>00128                 { .brut = 3 },
<a name="l00129"></a>00129                 <span class="comment">// PUSH [R1]</span>
<a name="l00130"></a>00130                 { .codage = {<a class="code" href="fonctions_8h.html#a431b92b32ec924789b2be268651a3fdd">PUSH</a>, <a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">REGIND</a>, 1} },
<a name="l00131"></a>00131 
<a name="l00132"></a>00132                 <span class="comment">// POP R6</span>
<a name="l00133"></a>00133                 { .codage = {<a class="code" href="fonctions_8h.html#a0b06d6d6f5a540a62659a417de0ad69d">POP</a>, <a class="code" href="fonctions_8h.html#a917d6766ff07665e160204f3a2d93216">REGREG</a>, 1} },
<a name="l00134"></a>00134                 <span class="comment">// POP [5]</span>
<a name="l00135"></a>00135                 { .codage = {<a class="code" href="fonctions_8h.html#a0b06d6d6f5a540a62659a417de0ad69d">POP</a>, <a class="code" href="fonctions_8h.html#af6021ade8fff21ffd94c5abcb93e4c79">REGDIR</a>} },
<a name="l00136"></a>00136                 { .brut = 5 },
<a name="l00137"></a>00137                 <span class="comment">// POP [R6]</span>
<a name="l00138"></a>00138                 { .codage = {<a class="code" href="fonctions_8h.html#a0b06d6d6f5a540a62659a417de0ad69d">POP</a>, <a class="code" href="fonctions_8h.html#a162eef9bfac0822db544b480a7b267c5">REGIND</a>, 6} },
<a name="l00139"></a>00139 
<a name="l00140"></a>00140                 <span class="comment">// CALL 9</span>
<a name="l00141"></a>00141                 { .codage = {<a class="code" href="fonctions_8h.html#aa980b5e5e502cf62bdca6c0452b97516">CALL</a>, <a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a> } },
<a name="l00142"></a>00142                 { .brut = 9 },
<a name="l00143"></a>00143 
<a name="l00144"></a>00144                 <span class="comment">// SUB R5, #1</span>
<a name="l00145"></a>00145                 { .codage = {<a class="code" href="fonctions_8h.html#a62c52d6d320f53e9e6632cce5a595660">SUB</a>, <a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a>,5} },
<a name="l00146"></a>00146                 { .brut = 1 },
<a name="l00147"></a>00147                 <span class="comment">// JEQ</span>
<a name="l00148"></a>00148                 { .codage = {<a class="code" href="fonctions_8h.html#a78ea9723ab55ec0293dba1cd48f3bd7d">JEQ</a>, <a class="code" href="fonctions_8h.html#a856c076a3e9c11fb0b4f78f98bac8ed3">REGIMM</a> } },
<a name="l00149"></a>00149                 { .brut = 44 },
<a name="l00150"></a>00150 
<a name="l00151"></a>00151                 <span class="comment">// HALT</span>
<a name="l00152"></a>00152                 { .codage = {<a class="code" href="fonctions_8h.html#a0de250395e6a7c0c32a34b50a6254c7d">HALT</a> } },
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 };
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="preprocessor">#endif </span><span class="comment">/* EXEMPLE_UTILISATION_H_ */</span>
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="preprocessor">#ifndef FONCTIONS_H_</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor">#define FONCTIONS_H_</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span>
<a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#a5325bc7f9174f0872485cde3999f38c0">add</a>(<span class="keywordtype">short</span>* reg,<span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#a58fa6b74b97de234c6883dadf28b3de0">SR</a>);
<a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#a67f196dd3656c5cbbe64452cca2873eb">sub</a>(<span class="keywordtype">short</span>* reg, <span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#a58fa6b74b97de234c6883dadf28b3de0">SR</a>);
<a name="l00165"></a>00165 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#a1c72b01e4b774b393955154c535df792">load</a>(<span class="keywordtype">short</span>* reg, <span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>);
<a name="l00166"></a>00166 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#ae9ded52abc61782c5d82b95b2801ced5">store</a>(<span class="keywordtype">short</span>* reg, <span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>);
<a name="l00167"></a>00167 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#ad4a547436e049812a3cb2acf6681ec87">push</a>(<span class="keywordtype">short</span>* reg, <span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* pilE, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#a3ee7622d5fd5bd07e98fa09d595db886">SP</a>);
<a name="l00168"></a>00168 <span class="keywordtype">void</span> <a class="code" href="operateurs_8c.html#a95c5f30e9a4f1d5b07108b1da2ac1ce6">pop</a>(<span class="keywordtype">short</span>* reg, <span class="keywordtype">short</span>* memd, <span class="keywordtype">short</span>* pilE, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ae0fe81a753b575de6aa60d6ee0ff872e">PC</a>, <span class="keywordtype">short</span>* <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#a3ee7622d5fd5bd07e98fa09d595db886">SP</a>);
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="keywordtype">void</span> <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ad83dec4c50fb74e4d425badafcd088a3">etatDesRegistres</a>(<span class="keywordtype">short</span>* reg);
<a name="l00171"></a>00171 <span class="keywordtype">void</span> <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#aa992256b8414a097ca98a0463a16fb8a">etatDeLaPile</a>(<span class="keywordtype">short</span>* pilE);
<a name="l00172"></a>00172 <span class="keywordtype">char</span>* <a class="code" href="operateurs_8c.html#a39a96e4bd19cf6e145f28d23b921e5de">codeToRegistre</a>(<span class="keywordtype">short</span> code);
<a name="l00173"></a>00173 <span class="keywordtype">void</span> <a class="code" href="emulateur_p_r_o_c_s_i_8c.html#ab80f005039b55cdbdbea52bbbad3c622">waitForEnter</a>();
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <span class="preprocessor">#endif </span><span class="comment">/* FONCTIONS_H_ */</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Vendredi Janvier 6 2012 17:05:27 pour Emulateur PROCSI par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
